import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import App from './App'
import store from './redux/store'
import './index.css'

ReactDOM.render(
  // Provider的作用: 就是将redux的store对象,传递给需要store对象的组件(通过connect函数返回的父组件)
  <Provider store={store}>
    <App></App>
  </Provider>,
  document.getElementById('root')
)
